from fastapi import APIRouter

index = APIRouter()

@index.get("/")
async def home():
    return {"message": "Hello World"}

@index.get("/data")
async def data():
    return {"message": "Hello Data"}